class Time {
    getTime() {
        let date = new Date();
        let year = date.getFullYear();
        let month = date.getMonth() + 1;
        let day = date.getDate();
        let hours = date.getHours();
        let minutes = date.getMinutes();
        let seconds = date.getSeconds();
        let time = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`
        return time;
    }
}

module.exports = Time;